#include "CFGCounter.h"
using namespace xml_api;

CCFGCounter::CCFGCounter(void)
{
}

CCFGCounter::~CCFGCounter(void)
{
}

bool CCFGCounter::SaveState(xml_api::Memento* m)
{

  return true;
}

bool CCFGCounter::LoadState(xml_api::Memento* m)
{
  int child_num=m->GetChildCount();
  for(int i=0; i<child_num; ++i)
  {
    Memento* child_m=m->GetChild(i);
    std::string child_name = child_m->GetName();
    if("FrontAddr" == child_name)
    {
      m_frontAddr.LoadState(child_m);
    }
    else if("Account" == child_name)
    {
      m_account.LoadState(child_m);
    }
  }

  return true;
}
